package com.qfedu.fmmall.entity;

import java.util.Date;
import javax.persistence.*;

public class Product {
    /**
     * ???????id
     */
    @Id
    @Column(name = "product_id")
    private String productId;

    /**
     * ??????? ???????
     */
    @Column(name = "product_name")
    private String productName;

    /**
     * ???????id ????id
     */
    @Column(name = "category_id")
    private Integer categoryId;

    /**
     * ??????????id ???????id????????????
     */
    @Column(name = "root_category_id")
    private Integer rootCategoryId;

    /**
     * ???? ???????
     */
    @Column(name = "sold_num")
    private Integer soldNum;

    /**
     * ?????1???????????, -1??????, 0??? ?????1???????????, -1??????, 0???
     */
    @Column(name = "product_status")
    private Integer productStatus;

    /**
     * ???????
     */
    @Column(name = "create_time")
    private Date createTime;

    /**
     * ???????
     */
    @Column(name = "update_time")
    private Date updateTime;

    /**
     * ??????? ???????
     */
    private String content;

    /**
     * ??????????id
     *
     * @return product_id - ???????id
     */
    public String getProductId() {
        return productId;
    }

    /**
     * ???????????id
     *
     * @param productId ???????id
     */
    public void setProductId(String productId) {
        this.productId = productId;
    }

    /**
     * ?????????? ???????
     *
     * @return product_name - ??????? ???????
     */
    public String getProductName() {
        return productName;
    }

    /**
     * ??????????? ???????
     *
     * @param productName ??????? ???????
     */
    public void setProductName(String productName) {
        this.productName = productName;
    }

    /**
     * ??????????id ????id
     *
     * @return category_id - ???????id ????id
     */
    public Integer getCategoryId() {
        return categoryId;
    }

    /**
     * ???÷??????id ????id
     *
     * @param categoryId ???????id ????id
     */
    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }

    /**
     * ?????????????id ???????id????????????
     *
     * @return root_category_id - ??????????id ???????id????????????
     */
    public Integer getRootCategoryId() {
        return rootCategoryId;
    }

    /**
     * ??????????????id ???????id????????????
     *
     * @param rootCategoryId ??????????id ???????id????????????
     */
    public void setRootCategoryId(Integer rootCategoryId) {
        this.rootCategoryId = rootCategoryId;
    }

    /**
     * ??????? ???????
     *
     * @return sold_num - ???? ???????
     */
    public Integer getSoldNum() {
        return soldNum;
    }

    /**
     * ???????? ???????
     *
     * @param soldNum ???? ???????
     */
    public void setSoldNum(Integer soldNum) {
        this.soldNum = soldNum;
    }

    /**
     * ????????1???????????, -1??????, 0??? ?????1???????????, -1??????, 0???
     *
     * @return product_status - ?????1???????????, -1??????, 0??? ?????1???????????, -1??????, 0???
     */
    public Integer getProductStatus() {
        return productStatus;
    }

    /**
     * ?????????1???????????, -1??????, 0??? ?????1???????????, -1??????, 0???
     *
     * @param productStatus ?????1???????????, -1??????, 0??? ?????1???????????, -1??????, 0???
     */
    public void setProductStatus(Integer productStatus) {
        this.productStatus = productStatus;
    }

    /**
     * ??????????
     *
     * @return create_time - ???????
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * ??????????
     *
     * @param createTime ???????
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * ??????????
     *
     * @return update_time - ???????
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * ??????????
     *
     * @param updateTime ???????
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * ?????????? ???????
     *
     * @return content - ??????? ???????
     */
    public String getContent() {
        return content;
    }

    /**
     * ??????????? ???????
     *
     * @param content ??????? ???????
     */
    public void setContent(String content) {
        this.content = content;
    }
}